package com.ruoyi.user.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.base.BaseEntity;

/**
 * APP版本表 usr_app
 * 
 * @author ruoyi
 * @date 2019-01-07
 */
public class App extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Long id;
	/** app名称 */
	private String appName;
	/** 版本编码 */
	private Long versionCode;
	/** 版本名称 */
	private String versionName;
	/** 版本描述 */
	private String description;
	/** 客户端类型1(andriod)，2(ios) */
	private Integer clientType;
	/** 是否可用0(不可用)，1(可用) */
	private Integer isUseful;
	/** 是否强制更新0(否)，1(是) */
	private Integer isForce;
	/** 下载地址 */
	private String downloadUrl;
	/** 下载次数 */
	private Long downloadCount;
	/** 创建人名称 */
	private String createdBy;
	/** 创建时间 */
	private Date createTime;
	/** 最后修改人名称 */
	private String updatedBy;
	/** 最后修改时间 */
	private Date updateTime;
	/** 是否删除0否1是 */
	private Integer enabled;
	/** 版本号 */
	private Long version;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setAppName(String appName) 
	{
		this.appName = appName;
	}

	public String getAppName() 
	{
		return appName;
	}
	public void setVersionCode(Long versionCode) 
	{
		this.versionCode = versionCode;
	}

	public Long getVersionCode() 
	{
		return versionCode;
	}
	public void setVersionName(String versionName) 
	{
		this.versionName = versionName;
	}

	public String getVersionName() 
	{
		return versionName;
	}
	public void setDescription(String description) 
	{
		this.description = description;
	}

	public String getDescription() 
	{
		return description;
	}
	public void setClientType(Integer clientType) 
	{
		this.clientType = clientType;
	}

	public Integer getClientType() 
	{
		return clientType;
	}
	public void setIsUseful(Integer isUseful) 
	{
		this.isUseful = isUseful;
	}

	public Integer getIsUseful() 
	{
		return isUseful;
	}
	public void setIsForce(Integer isForce) 
	{
		this.isForce = isForce;
	}

	public Integer getIsForce() 
	{
		return isForce;
	}
	public void setDownloadUrl(String downloadUrl) 
	{
		this.downloadUrl = downloadUrl;
	}

	public String getDownloadUrl() 
	{
		return downloadUrl;
	}
	public void setDownloadCount(Long downloadCount) 
	{
		this.downloadCount = downloadCount;
	}

	public Long getDownloadCount() 
	{
		return downloadCount;
	}
	public void setCreatedBy(String createdBy) 
	{
		this.createdBy = createdBy;
	}

	public String getCreatedBy() 
	{
		return createdBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdatedBy(String updatedBy) 
	{
		this.updatedBy = updatedBy;
	}

	public String getUpdatedBy() 
	{
		return updatedBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setEnabled(Integer enabled) 
	{
		this.enabled = enabled;
	}

	public Integer getEnabled() 
	{
		return enabled;
	}
	public void setVersion(Long version) 
	{
		this.version = version;
	}

	public Long getVersion() 
	{
		return version;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appName", getAppName())
            .append("versionCode", getVersionCode())
            .append("versionName", getVersionName())
            .append("description", getDescription())
            .append("clientType", getClientType())
            .append("isUseful", getIsUseful())
            .append("isForce", getIsForce())
            .append("downloadUrl", getDownloadUrl())
            .append("downloadCount", getDownloadCount())
            .append("createdBy", getCreatedBy())
            .append("createTime", getCreateTime())
            .append("updatedBy", getUpdatedBy())
            .append("updateTime", getUpdateTime())
            .append("enabled", getEnabled())
            .append("version", getVersion())
            .toString();
    }
}
